//
//  ViewController.m
//  ChooseDemo
//
//  Created by pro on 2021/11/9.
//

#import "ViewController.h"
#import "ChooseView.h"

@interface ViewController ()<ChooseTableviewSelectDelegate>
@property (nonatomic , strong) ChooseView *chooseV;


@end
#define kWindowH   [UIScreen mainScreen].bounds.size.height //应用程序的屏幕高度
#define kWindowW    [UIScreen mainScreen].bounds.size.width  //应用程序的屏幕宽度

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor greenColor];
    
    [self addSubChooseView];
}

-(void)addSubChooseView{
    [self.view addSubview:self.chooseV];
    NSArray *titleArr = @[@[@"1",@"2",@"3"],@[@"11",@"22",@"33",@"33",@"33",@"33",@"33",@"33"],@[@"111",@"222"]];
    self.chooseV.allDataArray = titleArr;
    self.chooseV.delegate = self;
    
}
-(void)chooseTableviewSelectDictionary:(NSMutableDictionary *)dictionary
{
    NSLog(@"%@",dictionary);
}
-(ChooseView *)chooseV
{
    if (!_chooseV) {
        _chooseV = [[ChooseView alloc] initWithFrame:CGRectMake(0, 100, kWindowW, 245)];
    }
    return _chooseV;
}
@end
